package com.wdz.mvr.Services;

import com.wdz.mvr.dao.PopularRepository;
import com.wdz.mvr.entities.Classification;
import com.wdz.mvr.entities.Popular;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PopularService {

    @Autowired
    PopularRepository popularRepository;

    public List<Popular> getAll() {

        return popularRepository.findAll();
    }

    public Popular save(Popular popular) {

        return popularRepository.save(popular);
    }
}
